//
// NeL - bindings
// Copyright (C) 2010 Naush
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU Affero General Public License as
//published by the Free Software Foundation, either version 3 of the
//License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU Affero General Public License for more details.
//
//You should have received a copy of the GNU Affero General Public License
//along with this program.  If not, see <http://www.gnu.org/licenses/>.

package org.ryzom.nel.misc;

public class CFileContainer {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CFileContainer(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CFileContainer obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nelmiscJNI.delete_CFileContainer(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CFileContainer() {
    this(nelmiscJNI.new_CFileContainer(), true);
  }

  public void addSearchPath(String path, boolean recurse, boolean alternative, IProgressCallback progressCallBack) {
    nelmiscJNI.CFileContainer_addSearchPath__SWIG_0(swigCPtr, this, path, recurse, alternative, IProgressCallback.getCPtr(progressCallBack), progressCallBack);
  }

  public void addSearchPath(String path, boolean recurse, boolean alternative) {
    nelmiscJNI.CFileContainer_addSearchPath__SWIG_1(swigCPtr, this, path, recurse, alternative);
  }

  public void addSearchPath(String path) {
    nelmiscJNI.CFileContainer_addSearchPath__SWIG_2(swigCPtr, this, path);
  }

  public void addSearchFile(String file, boolean remap, String virtual_ext, IProgressCallback progressCallBack) {
    nelmiscJNI.CFileContainer_addSearchFile__SWIG_0(swigCPtr, this, file, remap, virtual_ext, IProgressCallback.getCPtr(progressCallBack), progressCallBack);
  }

  public void addSearchFile(String file, boolean remap, String virtual_ext) {
    nelmiscJNI.CFileContainer_addSearchFile__SWIG_1(swigCPtr, this, file, remap, virtual_ext);
  }

  public void addSearchFile(String file, boolean remap) {
    nelmiscJNI.CFileContainer_addSearchFile__SWIG_2(swigCPtr, this, file, remap);
  }

  public void addSearchFile(String file) {
    nelmiscJNI.CFileContainer_addSearchFile__SWIG_3(swigCPtr, this, file);
  }

  public void addSearchListFile(String filename, boolean recurse, boolean alternative) {
    nelmiscJNI.CFileContainer_addSearchListFile(swigCPtr, this, filename, recurse, alternative);
  }

  public void addSearchBigFile(String filename, boolean recurse, boolean alternative, IProgressCallback progressCallBack) {
    nelmiscJNI.CFileContainer_addSearchBigFile__SWIG_0(swigCPtr, this, filename, recurse, alternative, IProgressCallback.getCPtr(progressCallBack), progressCallBack);
  }

  public void addSearchBigFile(String filename, boolean recurse, boolean alternative) {
    nelmiscJNI.CFileContainer_addSearchBigFile__SWIG_1(swigCPtr, this, filename, recurse, alternative);
  }

  public void addSearchXmlpackFile(String sXmlpackFilename, boolean recurse, boolean alternative, IProgressCallback progressCallBack) {
    nelmiscJNI.CFileContainer_addSearchXmlpackFile__SWIG_0(swigCPtr, this, sXmlpackFilename, recurse, alternative, IProgressCallback.getCPtr(progressCallBack), progressCallBack);
  }

  public void addSearchXmlpackFile(String sXmlpackFilename, boolean recurse, boolean alternative) {
    nelmiscJNI.CFileContainer_addSearchXmlpackFile__SWIG_1(swigCPtr, this, sXmlpackFilename, recurse, alternative);
  }

  public void removeAllAlternativeSearchPath() {
    nelmiscJNI.CFileContainer_removeAllAlternativeSearchPath(swigCPtr, this);
  }

  public void removeBigFiles(Vector_String bnpFilenames) {
    nelmiscJNI.CFileContainer_removeBigFiles(swigCPtr, this, Vector_String.getCPtr(bnpFilenames), bnpFilenames);
  }

  public String lookup(String filename, boolean throwException, boolean displayWarning, boolean lookupInLocalDirectory) {
    return nelmiscJNI.CFileContainer_lookup__SWIG_0(swigCPtr, this, filename, throwException, displayWarning, lookupInLocalDirectory);
  }

  public String lookup(String filename, boolean throwException, boolean displayWarning) {
    return nelmiscJNI.CFileContainer_lookup__SWIG_1(swigCPtr, this, filename, throwException, displayWarning);
  }

  public String lookup(String filename, boolean throwException) {
    return nelmiscJNI.CFileContainer_lookup__SWIG_2(swigCPtr, this, filename, throwException);
  }

  public String lookup(String filename) {
    return nelmiscJNI.CFileContainer_lookup__SWIG_3(swigCPtr, this, filename);
  }

  public boolean exists(String filename) {
    return nelmiscJNI.CFileContainer_exists(swigCPtr, this, filename);
  }

  public void clearMap() {
    nelmiscJNI.CFileContainer_clearMap(swigCPtr, this);
  }

  public void remapExtension(String ext1, String ext2, boolean substitute) {
    nelmiscJNI.CFileContainer_remapExtension(swigCPtr, this, ext1, ext2, substitute);
  }

  public void remapFile(String file1, String file2) {
    nelmiscJNI.CFileContainer_remapFile(swigCPtr, this, file1, file2);
  }

  public void loadRemappedFiles(String file) {
    nelmiscJNI.CFileContainer_loadRemappedFiles(swigCPtr, this, file);
  }

  public void display() {
    nelmiscJNI.CFileContainer_display(swigCPtr, this);
  }

  public String standardizePath(String path, boolean addFinalSlash) {
    return nelmiscJNI.CFileContainer_standardizePath__SWIG_0(swigCPtr, this, path, addFinalSlash);
  }

  public String standardizePath(String path) {
    return nelmiscJNI.CFileContainer_standardizePath__SWIG_1(swigCPtr, this, path);
  }

  public String standardizeDosPath(String path) {
    return nelmiscJNI.CFileContainer_standardizeDosPath(swigCPtr, this, path);
  }

  public void getPathContent(String path, boolean recurse, boolean wantDir, boolean wantFile, Vector_String result, IProgressCallback progressCallBack, boolean showEverything) {
    nelmiscJNI.CFileContainer_getPathContent__SWIG_0(swigCPtr, this, path, recurse, wantDir, wantFile, Vector_String.getCPtr(result), result, IProgressCallback.getCPtr(progressCallBack), progressCallBack, showEverything);
  }

  public void getPathContent(String path, boolean recurse, boolean wantDir, boolean wantFile, Vector_String result, IProgressCallback progressCallBack) {
    nelmiscJNI.CFileContainer_getPathContent__SWIG_1(swigCPtr, this, path, recurse, wantDir, wantFile, Vector_String.getCPtr(result), result, IProgressCallback.getCPtr(progressCallBack), progressCallBack);
  }

  public void getPathContent(String path, boolean recurse, boolean wantDir, boolean wantFile, Vector_String result) {
    nelmiscJNI.CFileContainer_getPathContent__SWIG_2(swigCPtr, this, path, recurse, wantDir, wantFile, Vector_String.getCPtr(result), result);
  }

  public String getFullPath(String path, boolean addFinalSlash) {
    return nelmiscJNI.CFileContainer_getFullPath__SWIG_0(swigCPtr, this, path, addFinalSlash);
  }

  public String getFullPath(String path) {
    return nelmiscJNI.CFileContainer_getFullPath__SWIG_1(swigCPtr, this, path);
  }

  public String getCurrentPath() {
    return nelmiscJNI.CFileContainer_getCurrentPath(swigCPtr, this);
  }

  public boolean setCurrentPath(String path) {
    return nelmiscJNI.CFileContainer_setCurrentPath(swigCPtr, this, path);
  }

  public void getFileList(String extension, Vector_String filenames) {
    nelmiscJNI.CFileContainer_getFileList(swigCPtr, this, extension, Vector_String.getCPtr(filenames), filenames);
  }

  public void getFileListByName(String extension, String name, Vector_String filenames) {
    nelmiscJNI.CFileContainer_getFileListByName(swigCPtr, this, extension, name, Vector_String.getCPtr(filenames), filenames);
  }

  public void addIgnoredDoubleFile(String ignoredFile) {
    nelmiscJNI.CFileContainer_addIgnoredDoubleFile(swigCPtr, this, ignoredFile);
  }

  public void memoryCompress() {
    nelmiscJNI.CFileContainer_memoryCompress(swigCPtr, this);
  }

  public void memoryUncompress() {
    nelmiscJNI.CFileContainer_memoryUncompress(swigCPtr, this);
  }

  public boolean isMemoryCompressed() {
    return nelmiscJNI.CFileContainer_isMemoryCompressed(swigCPtr, this);
  }

  public String getWindowsDirectory() {
    return nelmiscJNI.CFileContainer_getWindowsDirectory(swigCPtr, this);
  }

  public String getApplicationDirectory(String appName) {
    return nelmiscJNI.CFileContainer_getApplicationDirectory__SWIG_0(swigCPtr, this, appName);
  }

  public String getApplicationDirectory() {
    return nelmiscJNI.CFileContainer_getApplicationDirectory__SWIG_1(swigCPtr, this);
  }

  public String getTemporaryDirectory() {
    return nelmiscJNI.CFileContainer_getTemporaryDirectory(swigCPtr, this);
  }

}
